package com.udata.client.service;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.udata.shared.exception.OperationException;
import com.udata.shared.model.UserB;

/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath("../user")
public interface UserService extends RemoteService {
	UserB saveUser(UserB userB);

	UserB login(String email, String password);
	
	UserB getUser(String email) throws OperationException;
	
	UserB registerUser(UserB userB) throws OperationException;

	
}
